package app.game.enums;

/**
 * @Description TODO
 * @Date 2022/4/10 17:25
 * @Created by LYP
 */
public enum Chess {
    EMPTY("空", 0, "⬜"),BLACK_CHESS("黑棋", 1, "⚫"),WHITH_CHESS("白棋", 2, "⚪");

    private String name;
    private int type;
    private String item;

    Chess(String name, int type, String item) {
        this.name = name;
        this.type = type;
        this.item = item;
    }

    public String getName() {
        return name;
    }

    public int getType() {
        return type;
    }

    public String getItem() {
        return item;
    }

    public Chess getReverse(){
        if (this == Chess.BLACK_CHESS) {
            return Chess.WHITH_CHESS;
        }
        return Chess.BLACK_CHESS;
    }


}
